﻿using System.Collections.ObjectModel;
using System.Windows;

namespace Foundation
{
    using System;

    /// <summary>
    /// Interaction logic for MultiComboBox.xaml
    /// </summary>
    public partial class MultiComboBox
    {
        public static readonly DependencyProperty SelectedItemsProperty =
            DependencyProperty.Register("SelectedItems", typeof(ObservableCollection<object>), typeof(MultiComboBox), new PropertyMetadata(SelectedItemsPropertyChanged));

        public MultiComboBox()
        {
            InitializeComponent();
        }

        public ObservableCollection<object> SelectedItems
        {
            get
            {
                return (ObservableCollection<object>)GetValue(SelectedItemsProperty);
            }

            set
            {
                SetValue(SelectedItemsProperty, value);
            }
        }

        private static void SelectedItemsPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
        {
           // args.NewValue as ObservableCollection<>
        }
    }
}
